Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Fix pin/unpin slowness and non refresh from the message action bar #12934

Merged
merged 5 commits into from
Aug 28, 2024

Conversation

florianduros
Copy link
Contributor

@florianduros florianduros commented Aug 27, 2024

Checklist

  • Tests written for new code (and old code if feasible).
  • New or updated public/exported symbols have accurate TSDoc documentation.
  • Linter and other CI checks pass.
  • Sign-off given on the changes (see CONTRIBUTING.md).

This PR:

  • Improve doc of PinningUtils
  • Use the PinningUtils.isPinnable instead of canPinEvent in order to use the same function to determine if an event is pinnable.
  • Parallelize promises in order to reduce the slowness of the pin action
  • Fix the pin/unpin icon is not updated in the message action bar when clicked. Rerender the message action bar if there is a change in room pinned events.

@florianduros florianduros added the T-Defect Bugs, crashes, hangs, vulnerabilities, or other reported problems label Aug 27, 2024
@florianduros florianduros added this pull request to the merge queue Aug 28, 2024
Merged via the queue into develop with commit ea3c5cf Aug 28, 2024
39 checks passed
@florianduros florianduros deleted the florianduros/pinned-messages/fix-pin branch August 28, 2024 09:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Defect Bugs, crashes, hangs, vulnerabilities, or other reported problems
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants